package br.com.sig.persistence;
import javax.annotation.PostConstruct;
import javax.ejb.Singleton;
import javax.ejb.Startup;
import javax.inject.Inject;
import javax.inject.Named;

import org.jboss.seam.persistence.FlushModeManager;
import org.jboss.seam.persistence.FlushModeType;

@Named
@Singleton
@Startup
public class FlushModeManagerProvider {
	
	@Inject
	private FlushModeManager flushModeManager;

	@PostConstruct
	public void init() {
		flushModeManager.setFlushModeType(FlushModeType.MANUAL);	
	}
}